package com.yixing.tech.common.base;


import java.util.List;

/**
 * @author yixing tech
 */
public interface IBaseService<C, T> {
    public void add(C c) throws BusinessException;

    public void batchAdd(List<C> list)throws BusinessException;

    public C queryById(String id)throws BusinessException;

    public List<C> queryByIds(List<String> ids);

    public C queryByCondition(T t) throws BusinessException;

    public void update(C c) throws BusinessException;

    public Page<C> list(PageRow<T> pageRow) throws BusinessException;

    public List<C> list(T condition);

    public void deleteById(String id) throws BusinessException;

    public void delete(List<String> ids) throws BusinessException;

//    public void update(Criteria criteria, Update update, Class c) throws BusinessException;

}
